<?php
/**
 * 功能: 通知
 * User: WD
 * Date: 2019/1/4
 * Time: 16:24
 */

namespace app\index\controller;
use think\Controller;
use think\Db;

class Notice extends Controller{
    public function index(){
        $res = Db::name('notice')->select();

        if($res){
            return json(['msg'=>'请求成功','ok'=>true,'data'=>$res]);
        }else{
            return json(['msg'=>'请求成功','ok'=>false]);
        }
    }

}